import request from "../request";

// 获取施工内容列表
export const getList = (params) => {
  return request.request({
    method: "GET",
    url: "/api/project/constructionPreparation/getList",
    params,
  });
};

// 编辑列表
export const updateById = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionPreparation/update",
    data,
  });
};

// 上传文件
export const sgnrPictureUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionPreparation/sgnrPictureUpload",
    data,
  });
};

/* 
⭐
⭐
⭐
质量监督
*/

// 质量监督查询
export const getQualitySupervisionList = (params) => {
  return request.request({
    method: "get",
    url: "/api/project/constructionPreparation/qualitySupervisionList",
    params,
  });
};

// 上传文件
export const qualityMultifileUpload = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionPreparation/qualityMultifileUpload",
    data,
  });
};

// 质量监督修改
export const qualitySupervisionSaveOrUpdate = (data) => {
  return request.request({
    method: "post",
    url: "/api/project/constructionPreparation/qualitySupervisionSaveOrUpdate",
    data,
  });
};
